<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>
    	<spring:message code="head.clothGarment"></spring:message>
	    -
	    <spring:message code="head.subjectClassification"></spring:message>
    </title>
    <!--公共样式-->
    <link href="${pageContext.request.contextPath }/web/css/font/iconfont.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/NormalizeFile.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/public.css" />
    <!--列表页面私有样式-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/subpage/list.css" />
</head>
<body>
<jsp:include page="../main/head.jsp"></jsp:include>
<!--列表 begin-->
<div class="contenter mt134">
    <ul class="sub-info-list">
    	<c:forEach items="${list }" var="th">
        <li>
            <div class="sub-info-list-br"><div class="sub-info-list-img"><img src="${pageContext.request.contextPath }/upload/${th.img }" /></div></div>
            <div class="sub-info-list-cont">
                <div class="sub-info-list-cont-left">
                <h2 class="sub-info-title">${th.name }</h2>
                <h2 class="sub-subhead">${th.nameEn }</h2>
                <p>
                	<div class="info" title="${th.info }"></div>
                </p>
                </div>
                <div class="sub-info-read">
                    <a href="${pageContext.request.contextPath }/web/theme/details?id=${th.id}"><img src="${pageContext.request.contextPath }/web/img/read.jpg" /></a>
                </div>
            </div>
            <div class="clearfix"></div>
        </li>
        </c:forEach>
    </ul>
</div>
<!--列表 end-->
<jsp:include page="../main/bottom.jsp"></jsp:include>
<!--全局-->
<script type="text/javascript" src="${pageContext.request.contextPath }/web/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/web/js/public.js"></script>
<!--ie789下placeholder不兼容-->
<script type="text/javascript" src="${pageContext.request.contextPath }/web/js/placeholder.js"></script>
<script type="text/javascript">
	$(function(){
		
		var infoObjs=$('.info');
		infoObjs.each(function(){
			var titleString=$(this).attr('title');
			if(titleString.length>180){
				var titleSub=titleString.substring(0,180);
				$(this).text(titleSub+'...');
			}else{
				$(this).text(titleString);
			}
		});
		
	});

</script>
</body>
</html>